package com.itheima.mapper;

import com.itheima.pojo.Emp;
import com.itheima.pojo.LoginInfo;
import com.itheima.service.LoginService;
import com.itheima.service.impl.LoginServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;

@Mapper
public interface LoginMapper {

//    登录操作
    @Select("select id,username,name from emp where username = #{username} and password = #{password}")
    LoginInfo login(Emp emp);
}
